package com.idroid.domain;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;

public enum AreaType {
	Underground("Underground"), Lot("Lot"), SmallRamp("Small Ramp"), MediumRamp(
			"Medium Ramp"), LargeRamp("Large Ramp"), NoInformation("None");

	String s;

	private AreaType(String s) {
		this.s = s;
	}

	public String getDescription() {
		return s;
	}

	public String toString() {
		return s;
	}

	public static List<AreaType> getAreaTypes() {
		return Arrays.asList(values());
	}

	public static AreaType fromString(String areaString) {

		for (AreaType area : getAreaTypes()) {
			if (area.toString().equals(areaString)) {
				return area;
			}
		}

		return AreaType.NoInformation;

	}
}
